home *** CD-ROM | disk | FTP | other *** search
/ Immoral Angel 1 / Immoral Angel 1.iso / pc / program / main.dxr / 00047.ls < prev    next >
Encoding:
Text File  |  1997-07-11  |  1.6 KB  |  79 lines

  1. on checkbeep n
  2.   global beepnum
  3.   clearcheckbeep()
  4.   if n = 1 then
  5.     set the hilite of cast "beep1" to 1
  6.     puppetSound("1")
  7.   else
  8.     if n = 2 then
  9.       set the hilite of cast "beep2" to 1
  10.       puppetSound("2")
  11.     else
  12.       if n = 3 then
  13.         set the hilite of cast "beep3" to 1
  14.         puppetSound("3")
  15.       else
  16.         if n = 4 then
  17.           set the hilite of cast "beep4" to 1
  18.           puppetSound("4")
  19.         end if
  20.       end if
  21.     end if
  22.   end if
  23. end
  24.  
  25. on clearcheckbeep
  26.   set the hilite of cast "beep1" to 0
  27.   set the hilite of cast "beep2" to 0
  28.   set the hilite of cast "beep3" to 0
  29.   set the hilite of cast "beep4" to 0
  30. end
  31.  
  32. on cancelbeep
  33.   global bgmonoff, beepnum
  34.   if bgmonoff = "pi" then
  35.     set the hilite of cast "bgmOnOff" to 1
  36.     set bgmonoff to "pi"
  37.   else
  38.     set the hilite of cast "bgmOnOff" to 0
  39.     set bgmonoff to "nul"
  40.   end if
  41.   clearcheckbeep()
  42.   if beepnum = 1 then
  43.     set the hilite of cast "beep1" to 1
  44.   else
  45.     if beepnum = 2 then
  46.       set the hilite of cast "beep2" to 1
  47.     else
  48.       if beepnum = 3 then
  49.         set the hilite of cast "beep3" to 1
  50.       else
  51.         if beepnum = 4 then
  52.           set the hilite of cast "beep4" to 1
  53.         end if
  54.       end if
  55.     end if
  56.   end if
  57. end
  58.  
  59. on setbeep
  60.   global bgmonoff, beepnum
  61.   if the hilite of cast "bgmOnOff" = 1 then
  62.     set bgmonoff to "pi"
  63.   else
  64.     set bgmonoff to "nul"
  65.   end if
  66.   if the hilite of cast "beep1" = 1 then
  67.     set beepnum to 1
  68.   end if
  69.   if the hilite of cast "beep2" = 1 then
  70.     set beepnum to 2
  71.   end if
  72.   if the hilite of cast "beep3" = 1 then
  73.     set beepnum to 3
  74.   end if
  75.   if the hilite of cast "beep4" = 1 then
  76.     set beepnum to 4
  77.   end if
  78. end
  79.